package org.mespilus.mespilusweb.ui.usermanagement.client.events;

import com.google.gwt.event.shared.GwtEvent;

public class MemberListSearchEvent extends GwtEvent<MemberListSearchHandler> {
	protected static final GwtEvent.Type<MemberListSearchHandler> TYPE = new Type<MemberListSearchHandler>();
	protected String mail;
	
	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

	public static GwtEvent.Type<MemberListSearchHandler> getTYPE() {
		return TYPE;
	}

	@Override
	protected void dispatch(MemberListSearchHandler handler) {
		handler.processMemberSelected(this);
	}

	@Override
	public Type<MemberListSearchHandler> getAssociatedType() {
		return TYPE;
	}

}
